package com.ytjj.qmyx.mall.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AppPlatformStrictExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AppPlatformStrictExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAppListIdIsNull() {
            addCriterion("app_list_id is null");
            return (Criteria) this;
        }

        public Criteria andAppListIdIsNotNull() {
            addCriterion("app_list_id is not null");
            return (Criteria) this;
        }

        public Criteria andAppListIdEqualTo(Integer value) {
            addCriterion("app_list_id =", value, "appListId");
            return (Criteria) this;
        }

        public Criteria andAppListIdNotEqualTo(Integer value) {
            addCriterion("app_list_id <>", value, "appListId");
            return (Criteria) this;
        }

        public Criteria andAppListIdGreaterThan(Integer value) {
            addCriterion("app_list_id >", value, "appListId");
            return (Criteria) this;
        }

        public Criteria andAppListIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("app_list_id >=", value, "appListId");
            return (Criteria) this;
        }

        public Criteria andAppListIdLessThan(Integer value) {
            addCriterion("app_list_id <", value, "appListId");
            return (Criteria) this;
        }

        public Criteria andAppListIdLessThanOrEqualTo(Integer value) {
            addCriterion("app_list_id <=", value, "appListId");
            return (Criteria) this;
        }

        public Criteria andAppListIdIn(List<Integer> values) {
            addCriterion("app_list_id in", values, "appListId");
            return (Criteria) this;
        }

        public Criteria andAppListIdNotIn(List<Integer> values) {
            addCriterion("app_list_id not in", values, "appListId");
            return (Criteria) this;
        }

        public Criteria andAppListIdBetween(Integer value1, Integer value2) {
            addCriterion("app_list_id between", value1, value2, "appListId");
            return (Criteria) this;
        }

        public Criteria andAppListIdNotBetween(Integer value1, Integer value2) {
            addCriterion("app_list_id not between", value1, value2, "appListId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserSortIsNull() {
            addCriterion("user_sort is null");
            return (Criteria) this;
        }

        public Criteria andUserSortIsNotNull() {
            addCriterion("user_sort is not null");
            return (Criteria) this;
        }

        public Criteria andUserSortEqualTo(Integer value) {
            addCriterion("user_sort =", value, "userSort");
            return (Criteria) this;
        }

        public Criteria andUserSortNotEqualTo(Integer value) {
            addCriterion("user_sort <>", value, "userSort");
            return (Criteria) this;
        }

        public Criteria andUserSortGreaterThan(Integer value) {
            addCriterion("user_sort >", value, "userSort");
            return (Criteria) this;
        }

        public Criteria andUserSortGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_sort >=", value, "userSort");
            return (Criteria) this;
        }

        public Criteria andUserSortLessThan(Integer value) {
            addCriterion("user_sort <", value, "userSort");
            return (Criteria) this;
        }

        public Criteria andUserSortLessThanOrEqualTo(Integer value) {
            addCriterion("user_sort <=", value, "userSort");
            return (Criteria) this;
        }

        public Criteria andUserSortIn(List<Integer> values) {
            addCriterion("user_sort in", values, "userSort");
            return (Criteria) this;
        }

        public Criteria andUserSortNotIn(List<Integer> values) {
            addCriterion("user_sort not in", values, "userSort");
            return (Criteria) this;
        }

        public Criteria andUserSortBetween(Integer value1, Integer value2) {
            addCriterion("user_sort between", value1, value2, "userSort");
            return (Criteria) this;
        }

        public Criteria andUserSortNotBetween(Integer value1, Integer value2) {
            addCriterion("user_sort not between", value1, value2, "userSort");
            return (Criteria) this;
        }

        public Criteria andUserTypeIsNull() {
            addCriterion("user_type is null");
            return (Criteria) this;
        }

        public Criteria andUserTypeIsNotNull() {
            addCriterion("user_type is not null");
            return (Criteria) this;
        }

        public Criteria andUserTypeEqualTo(String value) {
            addCriterion("user_type =", value, "userType");
            return (Criteria) this;
        }

        public Criteria andUserTypeNotEqualTo(String value) {
            addCriterion("user_type <>", value, "userType");
            return (Criteria) this;
        }

        public Criteria andUserTypeGreaterThan(String value) {
            addCriterion("user_type >", value, "userType");
            return (Criteria) this;
        }

        public Criteria andUserTypeGreaterThanOrEqualTo(String value) {
            addCriterion("user_type >=", value, "userType");
            return (Criteria) this;
        }

        public Criteria andUserTypeLessThan(String value) {
            addCriterion("user_type <", value, "userType");
            return (Criteria) this;
        }

        public Criteria andUserTypeLessThanOrEqualTo(String value) {
            addCriterion("user_type <=", value, "userType");
            return (Criteria) this;
        }

        public Criteria andUserTypeLike(String value) {
            addCriterion("user_type like", value, "userType");
            return (Criteria) this;
        }

        public Criteria andUserTypeNotLike(String value) {
            addCriterion("user_type not like", value, "userType");
            return (Criteria) this;
        }

        public Criteria andUserTypeIn(List<String> values) {
            addCriterion("user_type in", values, "userType");
            return (Criteria) this;
        }

        public Criteria andUserTypeNotIn(List<String> values) {
            addCriterion("user_type not in", values, "userType");
            return (Criteria) this;
        }

        public Criteria andUserTypeBetween(String value1, String value2) {
            addCriterion("user_type between", value1, value2, "userType");
            return (Criteria) this;
        }

        public Criteria andUserTypeNotBetween(String value1, String value2) {
            addCriterion("user_type not between", value1, value2, "userType");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNull() {
            addCriterion("product_id is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("product_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(Integer value) {
            addCriterion("product_id =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(Integer value) {
            addCriterion("product_id <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(Integer value) {
            addCriterion("product_id >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_id >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(Integer value) {
            addCriterion("product_id <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("product_id <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<Integer> values) {
            addCriterion("product_id in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<Integer> values) {
            addCriterion("product_id not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(Integer value1, Integer value2) {
            addCriterion("product_id between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("product_id not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andSubsidyMoneyIsNull() {
            addCriterion("subsidy_money is null");
            return (Criteria) this;
        }

        public Criteria andSubsidyMoneyIsNotNull() {
            addCriterion("subsidy_money is not null");
            return (Criteria) this;
        }

        public Criteria andSubsidyMoneyEqualTo(Long value) {
            addCriterion("subsidy_money =", value, "subsidyMoney");
            return (Criteria) this;
        }

        public Criteria andSubsidyMoneyNotEqualTo(Long value) {
            addCriterion("subsidy_money <>", value, "subsidyMoney");
            return (Criteria) this;
        }

        public Criteria andSubsidyMoneyGreaterThan(Long value) {
            addCriterion("subsidy_money >", value, "subsidyMoney");
            return (Criteria) this;
        }

        public Criteria andSubsidyMoneyGreaterThanOrEqualTo(Long value) {
            addCriterion("subsidy_money >=", value, "subsidyMoney");
            return (Criteria) this;
        }

        public Criteria andSubsidyMoneyLessThan(Long value) {
            addCriterion("subsidy_money <", value, "subsidyMoney");
            return (Criteria) this;
        }

        public Criteria andSubsidyMoneyLessThanOrEqualTo(Long value) {
            addCriterion("subsidy_money <=", value, "subsidyMoney");
            return (Criteria) this;
        }

        public Criteria andSubsidyMoneyIn(List<Long> values) {
            addCriterion("subsidy_money in", values, "subsidyMoney");
            return (Criteria) this;
        }

        public Criteria andSubsidyMoneyNotIn(List<Long> values) {
            addCriterion("subsidy_money not in", values, "subsidyMoney");
            return (Criteria) this;
        }

        public Criteria andSubsidyMoneyBetween(Long value1, Long value2) {
            addCriterion("subsidy_money between", value1, value2, "subsidyMoney");
            return (Criteria) this;
        }

        public Criteria andSubsidyMoneyNotBetween(Long value1, Long value2) {
            addCriterion("subsidy_money not between", value1, value2, "subsidyMoney");
            return (Criteria) this;
        }

        public Criteria andSubsidySortIsNull() {
            addCriterion("subsidy_sort is null");
            return (Criteria) this;
        }

        public Criteria andSubsidySortIsNotNull() {
            addCriterion("subsidy_sort is not null");
            return (Criteria) this;
        }

        public Criteria andSubsidySortEqualTo(Integer value) {
            addCriterion("subsidy_sort =", value, "subsidySort");
            return (Criteria) this;
        }

        public Criteria andSubsidySortNotEqualTo(Integer value) {
            addCriterion("subsidy_sort <>", value, "subsidySort");
            return (Criteria) this;
        }

        public Criteria andSubsidySortGreaterThan(Integer value) {
            addCriterion("subsidy_sort >", value, "subsidySort");
            return (Criteria) this;
        }

        public Criteria andSubsidySortGreaterThanOrEqualTo(Integer value) {
            addCriterion("subsidy_sort >=", value, "subsidySort");
            return (Criteria) this;
        }

        public Criteria andSubsidySortLessThan(Integer value) {
            addCriterion("subsidy_sort <", value, "subsidySort");
            return (Criteria) this;
        }

        public Criteria andSubsidySortLessThanOrEqualTo(Integer value) {
            addCriterion("subsidy_sort <=", value, "subsidySort");
            return (Criteria) this;
        }

        public Criteria andSubsidySortIn(List<Integer> values) {
            addCriterion("subsidy_sort in", values, "subsidySort");
            return (Criteria) this;
        }

        public Criteria andSubsidySortNotIn(List<Integer> values) {
            addCriterion("subsidy_sort not in", values, "subsidySort");
            return (Criteria) this;
        }

        public Criteria andSubsidySortBetween(Integer value1, Integer value2) {
            addCriterion("subsidy_sort between", value1, value2, "subsidySort");
            return (Criteria) this;
        }

        public Criteria andSubsidySortNotBetween(Integer value1, Integer value2) {
            addCriterion("subsidy_sort not between", value1, value2, "subsidySort");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}